import request from '@/utils/request'

// 申请贷款，发起贷款业务审批流程
export function applyLoan(data) {
  return request({
    url: '/task/applyLoan',
    method: 'post',
    data: data
  })
}

// 查询用户的代办任务列表
export function queryTask(data) {
  return request({
    url: '/task/queryTask',
    method: 'get',
    params: data
  })
}
// 审批贷款
export function checkApply(data) {
  return request({
    url: '/task/checkApply',
    method: 'post',
    data: data
  })
}

// 风控审批贷款
export function riskCheckApply(data) {
  return request({
    url: '/risk/checkApply',
    method: 'post',
    data: data
  })
}
